/**
 * Enumerazione di tutti i codici di stato utilizzati nei responsi del server
 *
 */
public enum StatusCode {
//	public static final int OK = 200;
//	public static final int OK_END_OF_MOVIES = 259;
//	public static final int INDEX_OUT_OF_BOUNDS = 409;
//	public static final int PARAMETERS_ERROR = 416;
//	public static final int RESOURCE_NOT_AVAILABLE = 404;
	
	OK(200),
	OK_END_OF_MOVIES(259), 
	INDEX_OUT_OF_BOUNDS(409), 
	PARAMETERS_ERROR(416),
	RESOURCE_NOT_AVAILABLE(404), 
	RESOURCE_ALREADY_EXISTING(492);
	
	private final int code;
	private StatusCode(int code){
		this.code=code;
	}
	
	public int getValue(){
		return code;
	}
	
	
}
